package it.ap.sa.core.confservice.event;

import org.springframework.context.ApplicationEvent;

import it.ap.sa.core.utils.costants.ReloadServiceConstants;

/**
 * @author Alessandro Paolillo
 */
public class ConfigurationEventReload extends ApplicationEvent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Codice servizio da riconfigurare.
	 */
	private ReloadServiceConstants reloadService;
	
	/**
	 * @param source
	 */
	public ConfigurationEventReload(Object source) {
		super(source);
	}

	/**
	 * @param source
	 * @param reloadService
	 */
	public ConfigurationEventReload(Object source, ReloadServiceConstants reloadService) {
		super(source);
		this.reloadService = reloadService;
	}

	public String toString() {
		return "ConfigurationEventReload Event";
	}
	
	/**
	 * @return the reloadService
	 */
	public ReloadServiceConstants getReloadService() {
		return reloadService;
	}

	/**
	 * @param reloadService the reloadService to set
	 */
	public void setReloadService(ReloadServiceConstants reloadService) {
		this.reloadService = reloadService;
	}
}